Book Contents

NextStateBasedOn

Specifies how the button changes states:

  • Current state - the application switches the button from the current state to the other state and writes out the other state value.
  • Value connection - the application reads the value of the Value connection, and, if the value matches one of the button’s two state values, changes the button to the other state and writes out the other state value. Select this option if you want the button to base its state on external changes to the Value connection.

If the value does not match one of the button’s state values, the application changes the button to State 0 and writes out the State 0 value.